package com.dfbz.service.impl;

import com.dfbz.dao.UserfocusDao;
import com.dfbz.model.Userfocus;
import com.dfbz.service.UserfocusService;

import java.util.ArrayList;

public class UserfocusServiceImpl implements UserfocusService {
    UserfocusDao userfocusDao=new UserfocusDao();
    @Override
    public Userfocus findById(Integer id) {
        return userfocusDao.findByid(id);
    }

    @Override
    public ArrayList<Userfocus> findList() {
        return userfocusDao.findList();
    }

    @Override
    public void save(Userfocus userfocus) {
        userfocusDao.save(userfocus);
    }

    @Override
    public void deleteById(Integer id) {
        userfocusDao.deleteById(id);
    }

    @Override
    public void update(Userfocus userfocus) {
        userfocusDao.update(userfocus);
    }

    @Override
    public void deleteFocus(Integer uid, Integer fid) {
        userfocusDao.deleteFocus(uid,fid);
    }
}
